package com.share.common.utils.plugin.applicationEvent.example;

import org.springframework.context.ApplicationEvent;

public class SendEmailEvent extends ApplicationEvent{
    
	private static final long serialVersionUID = 416456414905064626L;
	
	private Message message;
	
	public SendEmailEvent(Object source) {
		super(source);
	}
	
	public SendEmailEvent(Object source, Message message) {
		super(source);
		this.setMessage(message);
	}
	
	@Override
	public int hashCode() {
		return super.hashCode();
	}
	@Override
	public boolean equals(Object obj) {
		return super.equals(obj);
	}

	public Message getMessage() {
		return message;
	}

	public void setMessage(Message message) {
		this.message = message;
	}
}
